$(document).ready(function() {
    $.getJSON('resources/js/commentvl.json', function(data){
		var out = [];
		$.each(data, function(key, value){
			out.push('<div class = "item">'
						+ '<a href="#" class= "deletebox">X</a>'
						+ '<div class="item_user">' + value.story +'</div>'
						+ '<div>' + value.contents + '</div>'
						+ '<div class="time"><div style="padding-top:2px; float:left">'+value.postedTime+'</div>'
						+ '<div style="padding-top:0px; float:right" class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-action="like" data-show-faces="true" data-share="false"></div> '
						+ '</div>'
						+ '</div>')
		});
		$('<div>',{html: out.join('')}).appendTo('#result');
	});
});// JavaScript Document
